<?php

use Illuminate\Support\Facades\Route;

// 后台
Route::group(['prefix' => 'appUser', 'namespace' => '\App\Http\Controllers\App', 'middleware' => 'auth:admin'], function () {
    Route::post('list', 'AppUserController@list');
});

// 小程序
Route::group(['namespace' => '\App\Http\Controllers\WeChat'], function () {
    Route::post('wmpLogin', 'WmpController@login');
    Route::post('wmpOpenid', 'WmpController@openid');
    Route::post('wmpAdv', 'WmpController@wmpAdv');
    // 获取跳转微信小程序URL
    Route::post('wmpSchemeUrl', 'WmpController@schemeUrl');
});

Route::get('getParkingLots', 'App\Http\Controllers\ParkingLot\App\ParkingLotController@getParkingLots');

// App
Route::group(['prefix' => 'app', 'namespace' => '\App\Http\Controllers\App'], function () {
    Route::group(['prefix' => 'user', 'controller' => 'AppUserController', 'middleware' => 'auth:app'], function () {
        Route::get('info', 'info');
    });
});
